﻿using System;
using System.Collections.Generic;
using GSQ.BusinessEntities;

namespace UIapp.Busquedas
{
    public partial class frmFacturasRecibosPagos : Plantillas.frmFindPlantilla
    {
        public frmFacturasRecibosPagos(List<FACTURAS> entities)
        {
            InitializeComponent();
            this.entityCollection = entities;
            this.radGridView1.DataSource = entities;
        }

        #region Variables
        List<FACTURAS> entityCollection;
        #endregion

        #region Tratamiento de eventos
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            if (this.entityCollection.Count > 0)
            {
                this.DialogResult = System.Windows.Forms.DialogResult.OK;
                this.Close();
            }
        }
        #endregion
    }
}
